


import React from 'react';
import { View, Pressable, Text} from 'react-native';
import { useRouter, Link } from 'expo-router';  // 导入 useRouter
import { Button } from '@rneui/base';
export default function Home() {

  const router = useRouter();  // 初始化路由
  return (
    <View className='flex-1 justify-center items-center'>
    <Text>地图</Text>
      <Button
        onPress={() => router.push('/scanner')}  // 使用 router.push() 跳转到 scanner 页面
      >
       <Text>扫描二维码1</Text> 
      </Button>
      <Button
        onPress={() => router.push('/camera')}  // 使用 router.push() 跳转到 scanner 页面
      >
       <Text>扫描二维码New</Text> 
      </Button>

    </View>
  );
}